package com.wuming.caiwu.dao;


import com.wuming.caiwu.model.Member;

import java.util.List;
import java.util.Map;

public interface MemberMapper {
    int deleteByPrimaryKey(Integer id);

    int insertSelective(Member record);

    Member selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Member record);

    /**
     * 根据用户名和密码查询管理员信息
     *
     * @param record 包括用户名和密码
     * @return 管理员信息
     */
    Member selectByNameAndPassword(Member record);

    /**
     * 通过微信id查找用户
     *
     * @param openid
     * @return
     * @author zhangyu
     * @date 2016-7-31
     * @time 下午9:03:06
     */
    Member selectByOpenid(String openid);

    List<Member> selectMembers(Member member);

    List<Member> getMemberByParent(Integer memberId);

    int updateById(Map<String,Object> params);
}